package com.dldata.display.service.System;

import com.dldata.display.entity.SysHospitalBranchKsEntity;
import com.dldata.display.repository.System.SysHospitalBranchKsDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * Created by 倪继文 on 2017/6/19.
 */

@Component
@Transactional
public class SysHospitalBranchKsService {

    @Autowired
    SysHospitalBranchKsDao hospitalBranchKsDao;

    public void save(SysHospitalBranchKsEntity entity){
        hospitalBranchKsDao.save(entity);
    }


    public List<SysHospitalBranchKsEntity>  getKsByYqId(String yqid){
        return hospitalBranchKsDao.getKsByYqId(yqid);
    }


    public void delete(String id){
        hospitalBranchKsDao.delete(id);

    }
}
